package com.magold.game.factory;

import com.magold.io.XMLReader;
import com.magold.logic.DirectionalPullTab;
import com.magold.logic.ISpriteLogic;

public class DirectionalPullTabFactory extends BaseLogicFactory {

	public DirectionalPullTabFactory() {
		super(DirectionalPullTab.class.getSimpleName());
	}

	@Override
	protected ISpriteLogic createSafely(XMLReader pReader) {
		float pLength = pReader.getFloat("length");
		float pOff = pReader.getFloat("off");
		DirectionalPullTab dpt = new DirectionalPullTab(pLength, pOff);
		return dpt;
	}

}
